package com.zzw.system.activiti;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

/**
 * @author zzw
 * @date 2023/4/28 17:42
 */
public class MyTaskListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        if(delegateTask.getName().equals("经理审批")){
            delegateTask.setAssignee("lll");
        }else if(delegateTask.getName().equals("人事审批")){
            delegateTask.setAssignee("aaa");
        }
    }
}
